package com.dsg.entity.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 操作日誌
 * </p>
 *
 * @author system
 * @since 2020-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DsgSysOptLog对象", description = "操作日誌")
public class DsgSysOptLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主鍵")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "操作類型/问题类型")
    @TableField("OPT_TYPE")
    private Integer optType;

    @ApiModelProperty(value = "操作人/应用ID")
    @TableField("OPT_USER")
    private String optUser;

    @ApiModelProperty(value = "方法名称")
    @TableField("METHOD")
    private String method;

    @ApiModelProperty(value = "执行时间")
    @TableField("ACT_TIME")
    private Date actTime;

    @ApiModelProperty(value = "响应时间")
    @TableField("RES_TIME")
    private long resTime;

    @ApiModelProperty(value = "客户端IP")
    @TableField("CLIENT_IP")
    private String clientIp;

    @ApiModelProperty(value = "日誌內容")
    @TableField("OPT_CONTENT")
    private String optContent;

    /**
     * 企業編號
     */
    @TableField(value = "ENT_CODE")
    @ApiModelProperty(value = "企業編號", name = "entCode")
    private String entCode;
}
